package com.prs.crm.domain.oa;

import java.util.List;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * OA新闻收藏类别
 * @author zhoupeng 2012-3-26
 *
 */
@Entity
@Table(name="oa_news_collect_type")
public class NewsCollectType extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	private String name;
	private String remark;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="type")
	private List<NewsCollect> newsCollects;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public List<NewsCollect> getNewsCollects() {
		return newsCollects;
	}
	public void setNewsCollects(List<NewsCollect> newsCollects) {
		this.newsCollects = newsCollects;
	}
	
}
